package one.stand.mapper;

import one.stand.model.CompanyAccountModel;
import one.stand.response.CompanyAccountResponse;

import java.util.List;

/**
 * @author Administrator
 */
public interface CompanyAccountMapper {
    int deleteByPrimaryKey(Integer accountId);

    int insertSelective(CompanyAccountModel record);

    CompanyAccountModel selectByPrimaryKey(Integer accountId);
    CompanyAccountModel select(CompanyAccountModel record);
    List<CompanyAccountModel> selectList(CompanyAccountModel model);

    /**
     * 根据公司id获取两个小程序的账号信息
     * @param model
     * @return
     */
    List<CompanyAccountModel> selectProgramByCompanyId(CompanyAccountModel model);


    CompanyAccountModel selectByCompanyKey(CompanyAccountModel record);
    CompanyAccountModel selectByOrdersId(CompanyAccountModel record);
    CompanyAccountModel selectPayInfo(CompanyAccountModel record);
    @Deprecated
    CompanyAccountModel selectByUserId(CompanyAccountModel record);
    CompanyAccountModel selectByUserIdCopy(CompanyAccountModel record);

    int updateByPrimaryKeySelective(CompanyAccountModel record);

    List<CompanyAccountResponse> selectCompanyAccountList(CompanyAccountModel model);

    CompanyAccountModel getCompanyAccountAppId(CompanyAccountModel model);
}